<%--                                                                       --%>
<%-- Copyright (c) 2003-2004 BroadVision, Inc.  All rights reserved.       --%>
<%--                                                                       --%>
<%-- This software is copyrighted. Under the copyright laws, this software --%>
<%-- may not be copied, in whole or in part, without prior written consent --%>
<%-- of BroadVision, Inc. or its assignees. This software is provided      --%>
<%-- under the terms of a license between BroadVision and the recipient,   --%>
<%-- and its use is subject to the terms of that license.                  --%>
<%--                                                                       --%>
<%-- This software may be protected by one or more U.S. and International  --%>
<%-- patents.  Certain applications of BroadVision One-To-One software are --%>
<%-- covered by U.S. patent 5,710,887.                                     --%>
<%--                                                                       --%>
<%-- TRADEMARKS: BroadVision and BroadVision One-To-One are registered     --%>
<%-- trademarks of BroadVision, Inc., in the United States and the         --%>
<%-- European Community, and are trademarks of BroadVision, Inc., in other --%>
<%-- countries.  The BroadVision logo, is a trademark of BroadVision,      --%>
<%-- Inc., in the United States and other countries. Additionally, IONA    --%>
<%-- and Orbix are trademarks of IONA Technologies, Ltd.  RSA, MD5, and    --%>
<%-- RC2 are trademarks of RSA Data Security, Inc.                         --%>
<%--                                                                       --%>

<%@ page import = "java.util.*, java.net.*,
  com.broadvision.ssp.client.SspPackage"
%>

<%@ taglib uri="/WEB-INF/c.tld" prefix="c" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/bv-html.tld" prefix="bvhtml" %>

<script language="javascript" src="<%=request.getContextPath()%>/mc/js/date.js"></script>

<SCRIPT language="javascript">

  function doCancel(myform) {
    myform.action = '<c:url value="${packageChangeEditForm.map.forwardAction}"/>';
    myform.submit();
  }

  function doSubmit(myform) {
    myform.action = '<c:url value="/bp/packageChangeEdit.do?action=save"/>';
    myform.submit();
  }

</SCRIPT>

<html:form action="/bp/packageChangeEdit.do">
<html:hidden name="packageChangeEditForm" property="packageOid"/>
<html:hidden name="packageChangeEditForm" property="filter"/>
<html:hidden name="packageChangeEditForm" property="logtime"/>
<html:hidden name="packageChangeEditForm" property="userAlias"/>
<html:hidden name="packageChangeEditForm" property="forwardAction"/>
<table class="zoneFive" width="100%" border="0" cellspacing="0" cellpadding="0" summary="content area">
  <tr>
    <td valign="top" width="100%">
      <div class="pageSubtitle">
        <span class="left"><bean:message key="bp.package.packageChange.commentsForChanges" bundle="bp.messages"/></span>
        <span class="right">&nbsp;</span>
      </div>
        <table class="dataTable" border="0" cellspacing="1" cellpadding="2" summary="change list table" width="100%">
          <tr class="listHeader"> 
            <th id="Date" align="left">
              <bean:message key="header.date" bundle="bp.messages"/>
            </th>
            <th id="ChangeIn" align="left">
              <bean:message key="header.changeIn" bundle="bp.messages"/>
            </th>
            <th id="User" align="left">
              <bean:message key="header.user" bundle="bp.messages"/>
            </th>
            <th id="Comments" align="left">
              <bean:message key="header.comments" bundle="bp.messages"/>
            </th>
          </tr>
          <logic:iterate id="change" name="packageChangeView" property="changes" indexId="i">
            <tr class="<%=i.intValue() % 2 == 0 ? "listEven" : "listOdd" %>">
              <td headers="Date">
                <bean:write name="change" property="date"/>
              </td>
              <td headers="ChangeIn">
                <bean:write name="change" property="changeIn"/>
                <input type="hidden" name="changeIn" value="<bean:write name="change" property="changeIn"/>"/>
              </td>
              <td headers="User">
                <bean:write name="change" property="userFullName"/>
              </td>
              <td headers="Comments">
                <input type="textarea" name="comments" cols="31" rows="4" maxlength="80"
                  value="<bean:write name="change" property="comments"/>"/>
              </td>
            </tr>
          </logic:iterate>
        </table>
  			<div class="pageButtonWrap" align="right">
          <input type="button" name="cancelData" class="pageButton" 
            onclick="doCancel(this.form);" 
            value='<bean:message key="button.cancel" bundle="bp.messages"/>'>
          <input type="button" name="saveData" class="pageButton" 
            onclick="doSubmit(this.form);" 
            value='<bean:message key="button.submit" bundle="bp.messages"/>'>
  			</div>
    </td>
  </tr>
</table>
</html:form>

